<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DutiesCourse extends Model
{
    public $timestamps = false;
    protected $connection = 'xz';
    protected $table = 'duties_course';
    use HasFactory;

    public function courses()
    {
        return $this->hasMany('App\Models\Course','course_id','id')->select('id','name');
    }

}
